﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RealEstateAgencyDAL;

namespace RealEstateBrowser.ViewModels
{
    public class OfferViewModel : ViewModelBase
    {
        private Offer offer;

        public OfferViewModel()
        {
        }

        public Offer Offer
        {
            get
            {
                return offer;
            }
            set
            {
                if (this.offer != value)
                {
                    offer = value;
                }
            }
        }

        public bool IsActive
        {
            get
            {
                return offer.Active;
            }
        }
    }
}